; *****************************************************************
; Process management - assebler routines for IA32 arch
; Reindeer OS
;
; Copyrights 2011 Michal Saman, m.saman@designplus.cz.
; This source code is release under the Apache License 2.0.
; http://www.apache.org/licenses/LICENSE-2.0
; *****************************************************************

[GLOBAL get_pc]
get_pc:
	pop	eax					; after call the EIP is pushed to stack
	jmp eax					; we can't use ret because we pop eip already, so jump to return address, eax is return value
